package com.echofeng.common.net;


import com.echofeng.common.MyApplication;
import com.echofeng.common.config.AppConstants;

public class APIConstant {

    //URL
    public static String getBASE_URL() {
        String URL = "http://134.122.170.89:9501";
        switch (MyApplication.getEnvironment()) {
            case AppConstants.AppStatus.TEST:
                URL =  "http://134.122.170.89:9501";
                break;
            case AppConstants.AppStatus.CHECK:
                URL =  "http://134.122.170.89:9501";
                break;
            case AppConstants.AppStatus.RELEASE:
                URL =  "http://134.122.170.89:9501";
                break;
        }
        return URL;
    }


    public static String getBASE_H5_URL(String api) {
        String URL = getBASE_URL()+api;
        return URL;
    }

    //获取手机验证码
    public static final String GET_VERIFY_PHONE_CODE="/app/api/sendmsg";
    //设备登录并获取token
    public static final String DO_LOGIN="/app/api/auth/login/device";
    //首页推荐视频
    public static final String GET_HOME_VIDEO_RECOMMEND="/app/api/video/home/recommend";
    // 购买的视频
    public static final String GET_USER_VIDEO_BUY = "/app/api/video/list/user/buy";
    // 喜欢的视频
    public static final String GET_USER_VIDEO_LIKE = "/app/api/video/like/list";
    // 视频分类列表
    public static final String GET_HOME_HOT_CLASS = "/app/api/video/type/list";
    // 分类视频列表
    public static final String GET_HOME_VIDEO_CLASS = "/app/api/video/list/type";
    // 搜索视频列表
    public static final String GET_HOME_VIDEO_SEARCH = "/app/api/search/video/list";
    // 作品的视频
    public static final String GET_USER_VIDEO_OWN = "/app/api/video/user/list";
    // 点赞视频
    public static final String DO_VIDEO_LIKE = "/app/api/video/like";
    // 获取我的资料
    public static final String GET_MINE_INFO = "/app/api/user/info";
    // 获取用户的资料
    public static final String GET_USER_INFO = "/app/api/user/data";
}
